const baseRouter = {
  // 基础组件
  path: '/base',
  name: '基础组件', // 分类标题
  component: { render: e => e('router-view') }, // 解决嵌套路由情况下，不会渲染children组件的bug
  children: [
    {
      path: 'input',
      name: '输入框(input)',
      component: () => import('@/views/documents/base-components/kunkka-input'),
      hidden: false
    },
    {
      path: 'select',
      name: '选择器(select)',
      component: () =>
        import('@/views/documents/base-components/kunkka-select'),
      hidden: false
    },
    {
      path: 'button',
      name: '按钮(button)',
      component: () =>
        import('@/views/documents/base-components/kunkka-button'),
      hidden: false
    },
    {
      path: 'tinymce',
      name: '富文本(tinymce)',
      component: () =>
        import('@/views/documents/base-components/kunkka-tinymce'),
      hidden: false
    },
    {
      path: 'swipe',
      name: '图片上传(upload&swipe)',
      component: () =>
        import('@/views/documents/base-components/kunkka-swipe'),
      hidden: false
    },
    {
      path: 'textarea',
      name: '多行输入(textarea)',
      component: () =>
        import('@/views/documents/base-components/kunkka-textarea'),
      hidden: false
    },
    {
      path: 'pagination',
      name: '分页(pagination)',
      component: () =>
        import('@/views/documents/base-components/kunkka-pagination'),
      hidden: false
    }
  ]
}
export default baseRouter
